package org.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.mapper.TypeMapper;
import org.example.pojo.Type;
import org.example.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 宋孟林
 * @description
 */
@Transactional
@Service
public class TypeServiceImpl extends ServiceImpl<TypeMapper, Type> implements TypeService {
    @Autowired  
    private TypeMapper typeMapper;

    @Override
    public List<Type> findAllTypes(){
        return typeMapper.selectList(null);
    }


}
